<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="jsp/common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>医疗管理系统</title>
<link rel="stylesheet" href="css/tripoli.simple.css" type="text/css"></link>
<link rel="stylesheet" href="css/layout.css" type="text/css"></link>
<style type="text/css">
body {
	margin: 0px;
	padding: 0px;
	font-family: "微软雅黑", "黑体", "宋体";
	font-size: 14px;
	height: 36px;
}
</style>
<script type="text/javascript">
			function logout()
			{
				if(confirm("您确定要注销当前用户?"))
				{
					parent.location.href = "${path}/logout";
				}
			}
			
			setInterval("webjx.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
			function editPassword()
			{
				openDailog("view","${path}/jsp/user/editPassword.jsp",380,180,"修改密码",false,true,null,function(dlg){
	  				dlg.getIFrame().doSave();
	  			});
			}
			
		</script>
</head>
<body>
	<div id="header">
		<div style="float:left;display:inline">
			<h1 style="font-size: 24px; color: #fff; padding:20px;">
				医疗管理系统
				<c:choose>
					<c:when test="${sessionScope.session_user.campus == 0}">(校本部)</c:when>
					<c:when test="${sessionScope.session_user.campus == 1}">(白云校区)</c:when>
					<c:when test="${sessionScope.session_user.campus == 2}">(北校区)</c:when>
					<c:when test="${sessionScope.session_user.campus == 3}">(西校区)</c:when>
				</c:choose>
			</h1>
		</div>
		<div style="float:right;display:inline;margin-top:20px">
			<table border="0" style="color: white;" cellpadding="0">
				<tr>
					<td><div style="margin-right: 15px" id="webjx"></div>
					</td>
					<td>欢迎您: <strong>${sessionScope.session_user.name }</strong>
					</td>
					<td><img alt="修改密码" style="margin-left: 20px;cursor:pointer;"
						src="${path}/images/index/key.png" width="20px" height="20px"
						onclick="editPassword()" />
					</td>
					<td><img alt="注销"
						style="margin-left: 20px;margin-right: 30px;cursor:pointer;"
						src="${path}/images/index/log_out.png" width="20px" height="20px"
						onclick="logout()" />
					</td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>
